//
//  ViewController.m
//  mall
//
//  Created by 一米阳光 on 15/7/11.
//  Copyright (c) 2015年 seekool. All rights reserved.
//

#import "ViewController.h"
#import "SRAlipay.h"
#import "LTLoginViewController.h"
#import "SignViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    [SRAlipay alipay];
//    [self.view setBackgroundColor:[UIColor whiteColor]];
//    
//    UIButton *login = [UIButton buttonWithType:UIButtonTypeCustom];
//    [login setTitle:@"登录" forState:UIControlStateNormal];
//    [login setBackgroundColor:[UIColor redColor]];
//    [login setFrame:CGRectMake(20, 100, 100, 50)];
//    [login addTarget:self action:@selector(pushToLogin) forControlEvents:UIControlEventTouchUpInside];
//    [self.view addSubview:login];
    
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)phoneSign:(id)sender
{
    

    SignViewController *sign = [[SignViewController alloc] init];
    sign.title = @"手机注册";
    [sign.navigationItem.backBarButtonItem setTitle:@"注册"];
    sign.navigationItem.rightBarButtonItem.title = @"登录";
    [self.navigationController pushViewController:sign animated:YES];
}

- (void)pushToLogin
{
    LTLoginViewController *controler = [[LTLoginViewController alloc] init];
    
    [self.navigationController pushViewController:controler animated:NO];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
